/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.config.entity.email;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 邮箱配置Entity
 *
 * @author JiangYongKang
 * @version 2016-12-30
 */
public class ConfigEmail extends DataEntity<ConfigEmail> {

    private static final long serialVersionUID = 1L;
    private String account;        // 邮箱账号
    private String password;        // 邮箱密码
    private Short type;        // 发信类型
    private String address;        // 发信地址
    private String port;        // 端口号
    private String security;        // 发信安全

    public ConfigEmail() {
        super();
    }

    public ConfigEmail(String id) {
        super(id);
    }

    @Length(min = 1, max = 64, message = "邮箱账号长度必须介于 1 和 64 之间")
    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    @Length(min = 1, max = 64, message = "邮箱密码长度必须介于 1 和 64 之间")
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Length(min = 1, max = 4, message = "发信类型长度必须介于 1 和 4 之间")
    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    @Length(min = 1, max = 255, message = "发信地址长度必须介于 1 和 255 之间")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Length(min = 1, max = 64, message = "端口号长度必须介于 1 和 64 之间")
    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    @Length(min = 0, max = 64, message = "发信安全长度必须介于 0 和 64 之间")
    public String getSecurity() {
        return security;
    }

    public void setSecurity(String security) {
        this.security = security;
    }

}